package priv.stones.io.Scanner.file;

import java.io.File;
import java.io.IOException;

/**
 * @Author: Stones
 * @Description:
 * @Date: 2017/9/27 12:39
 */
public class File1 {


    public static void main(String[] args) throws IOException {
        String path = "e:"+File.separator+"dict.txt";
        File file = new File(path);

        if (!file.getParentFile().exists()) {
            System.out.println("mkdir :" + file.getParentFile().mkdirs());
        }
        if (file.exists()) {
            System.out.println("file delete:" + file.delete());
        }else{
            System.out.println("file create:"+file.createNewFile());
        }

    }

}
